<?php

namespace App\Store\Validate\Wxapp;

use App\Common\Validate\BaseValidate;

/**
 * 验证器
 */
class WxTemplate extends BaseValidate
{

    //验证规则
    protected $rule = [];
    //自定义验证信息
    protected $message = [];

    public function __construct($doaction = 'wxtemplate')
    {
        if ($doaction == 'wxtemplate') {
            $this->rule = [
//                '3_day' => 'required',
//                '3_week' => 'required',
//                '3_month' => 'required',
//                'score' => 'required',
//                'order' => 'required',
            ];
            $this->message = [
//                '3_day.required' => '回访通知-三天模版ID不能为空',
//                '3_week.required' => '回访通知-三周模版ID不能为空',
//                '3_month.required' => '回访通知-三月模版ID不能为空',
//                'score.required' => '积分通知模版ID不能为空',
//                'order.size' => '订单通知模版ID不能为空',
            ];
        }
    }
}
